{% extends './layout.html' %}
{% block title %}
    WeChat Configuration
{% endblock %}
{% block style %}
{% endblock %}
{% block body %}
    <div style="text-align:center">
        <h1>WeChat Configuration</h1>
    </div>
    <div>
    <form method="post">
    {% if wechat %}
        <div class="form-group">
            <label>App ID</label>
            <input type="text" class="form-control" id="appid" name="appid" value="{{ wechat.appid }}" />
        </div>
        <div class="form-group">
            <label>Secret</label>
            <input type="text" class="form-control" id="secret" name="secret" value="{{ wechat.secret }}" />
        </div>
        <div class="form-group">
            <label>Nonce Str</label>
            <input type="text" class="form-control" id="noncestr" name="noncestr" value="{{ wechat.noncestr }}" />
        </div>
        <div class="form-group">
        <button class="button button-default" type="submit">Save</button>
        </div>
    {% endif %}
    </form>
    </div>
{% endblock %}